<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>会员详情</title>
		<link rel="stylesheet" href="__AGENT__/css/css.css" />
		<script type="text/javascript" src="__PUBLIC__/static/js/jquery.min.js"></script>
		<link rel="stylesheet" href="__PUBLIC__/static/layui/css/layui.css">
		<script src="__PUBLIC__/static/layui/layui.js"></script>
	</head>

	<body>
		<div class="right" >
			<div class="rigtop">
				<span class="title">成员详情</span>
				<!--<span class="title">
					<input  type="text" id='condition'/>
					<button onclick="sel_content()"  id='search-button' style="font-size: 13px;"> &nbsp;查 找&nbsp; </button>
				</span>-->
			</div>
			<div class="layui-collapse" lay-accordion="" id='content'>
			  <div class="layui-colla-item">
			    <h2 class="layui-colla-title">推广区域服务商
			    	<em style="font-size: 14px;color: red;">(数量：<?php echo count($member_list)?>)</em>
			    	<em style="font-size: 14px;color: red;">(旗下累计充值：{$province_cz})</em>
			    	</h2>
			    {if count($member_list)>0}
			    	{volist name="$member_list" id="city"}
						<div class="layui-colla-content layui-show">
					      <div class="layui-collapse" lay-accordion="">
					        <div class="layui-colla-item">
					          <h2 class="layui-colla-title">
					          	区域服务商:{$city['user_name']}
					          	<em style="font-size: 14px;color: red;">(推广商家数量：{$city['develop_agent']})</em>
					          	<em style="font-size: 14px;color: red;">(旗下累计充值：{$city['city_cz']})</em>
					          </h2>
					          <div style="background: #f2f2f2;padding: 0 15px 0 35px;">联系电话:{$city['mobile']}；加入时间:{$city['add_time']}</div>
					          {if count($city['agent_list'])>0}
					          <div class="layui-colla-content ">
					            <div class="layui-collapse" lay-accordion="">
					            	{volist name="$city.agent_list" id="agent"}
						              <div class="layui-colla-item" style="margin-bottom: 10px;">
						                <h2 class="layui-colla-title">
						                	商家：{$agent['agent_name']}&nbsp; =>上级：{$city['user_name']}
						                	<em style="font-size: 14px;color: red;">(会员数量：{$agent['develop_user']})</em>
						                	<em style="font-size: 14px;color: red;">(旗下累计充值：{$agent['agent_cz']})</em>
						                </h2>
						                <div style="background: #f2f2f2;padding: 0 15px 0 35px;">联系电话:{$agent['mobile']}；加入时间:{$agent['add_time']}</div>
						              </div>
					             	{/volist}
					            </div>
					          </div>
					          {/if}
					        </div>
					      </div>
					   </div>	
			    	{/volist}
			  	{/if}
			  </div>
			</div>
		</div>
			
	</body>
	
</html>
<script type="text/javascript" src="__PUBLIC__/static/js/jquery.min.js"></script>
<link rel="stylesheet" href="__PUBLIC__/static/layui/css/layui.css">
<script src="__PUBLIC__/static/layui/layui.all.js"></script>
<script>
//注意：折叠面板 依赖 element 模块，否则无法进行功能性操作
layui.use('element', function(){
  var element = layui.element;
  
});

	function sel_content(){
		var content = document.body.innerHTML;
		var condition = $('#condition').val();
		var result = content.indexOf(condition);
		
	}
</script>
